#include <stdlib.h>
#include "generate.h"

int generate_random_num(int count, int min, int max, int a[], int n)
{
    int i;
    if(count > n) return -1;
    srand(time(0));
    for(i = 0; i < count; i++)
    {
        a[i] = rand() % (max - min + 1) + min;
    }
    return 0;
}
